public class CPU {
    private int speed;

    public int getSpeed() { //返回speed的值
        return speed;
    }
    public void setSpeed(int speed) {//传值
        this.speed=speed;
    }
}
